package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.SysPost;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysPostRepository extends JpaRepository<SysPost, Long> {

    SysPost findFirstById(long id);

    SysPost findFirstByPostCode(String postCode);

    SysPost findFirstByPostCodeAndIdNot(String postCode, long id);

}